var obj1 = {
  name:"张三",
  age: 12,
  gender: '男'
}

let keys = Object.keys(obj1);
let values = Object.values(obj1);
let entires = Object.entries(obj1);
console.log(keys,values,entires);